// 1.引入公用样式表
require("../../assets/css/index.less");
// require("../../assets/fonts/iconfont.css")

// 2.引入当前样式表
require("./timeCut.less");

// 引入插件

// 3.引入公用js模块
let validator = require("../../utils/validator.js");
let https = require("../../utils/https.js");

// 4.引入工具函数
let dom = require("../../utils/dom.js");
dom.ready(function () {
	// 倒计时
	let num = 3;
	const timer = setInterval(function () {
		num--;
		if (num <= 0) {
			setTimeout(function () {
				clearInterval(timer);
				location.href = "sporting.html";
			}, 1000);
			dom.$("main >div").textContent = "GO";
		} else {
			dom.$("main >div").textContent = num;
		}
	}, 1000);
});
